<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:include page="/header.jsp" />
	<div class="push-1 span-3" >
		<h2 class="bottom">Clientes</h2>
	</div>
	
	<div class="span-4" >
		<a href="<s:url namespace="/clientes" action="novo" />" id='adicionar'>[Novo]</a>
	</div>
	
	<div class="push-1 span-23">
  	<table summary="Lista dos clientes"  border="0" cellspacing="0" cellpadding="0">
    	<thead>
    		<tr>
    			<th class="span-4">Nome</th>
    	  	<th class="span-4 last">CPF</th>
    	  	<th class="span-4 last">RG</th>
    	  	<th class="span-4 last">Cidade</th>
    		</tr>
    	</thead>
    	<tfoot>
    		<tr>
    			<td colspan="4"><s:property value="clientes.size()" /> Cliente(s)</td>
    		</tr>
    	</tfoot>
    	<tbody>
    		<s:iterator value="clientes" >
	    		<tr>
	    		<td><s:property value="nome" /></td>
	    	  	<td><s:property value="cpf" /></td>
	    	  	<td><s:property value="rg" /></td>
	    	  	<td><s:property value="endereco.cidade" /></td>
	    		</tr>
    		</s:iterator>
    	</tbody>
    	
    </table>
	</div>
<jsp:include page="/footer.jsp" />